package com.tianyang.yukuaifuzs.utils.animations;

import android.animation.Animator;
import android.view.View;

/**
 * Description :旋转动画的参数类
 */
public class RotationParams extends BaseAnimationParams{
    public RotationParams(View view) {
        super(view);
    }
    private float startDegrees;
    private float endDegrees;
    private int duration;
    private int repeatCount;
    private float pivotX = 0.5f;
    private float pivotY = 0.5f;
    private Animator.AnimatorListener rotationAnimationListener;

    public float getStartDegrees() {
        return startDegrees;
    }

    public void setStartDegrees(float startDegrees) {
        this.startDegrees = startDegrees;
    }

    public float getEndDegrees() {
        return endDegrees;
    }

    public void setEndDegrees(float endDegrees) {
        this.endDegrees = endDegrees;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public int getRepeatCount() {
        return repeatCount;
    }

    public void setRepeatCount(int repeatCount) {
        this.repeatCount = repeatCount;
    }

    public float getPivotX() {
        return pivotX;
    }

    public void setPivotX(float pivotX) {
        this.pivotX = pivotX;
    }

    public float getPivotY() {
        return pivotY;
    }

    public void setPivotY(float pivotY) {
        this.pivotY = pivotY;
    }



    public Animator.AnimatorListener getRotationAnimationListener() {
        return rotationAnimationListener;
    }

    public void setRotationAnimationListener(Animator.AnimatorListener rotationAnimationListener) {
        this.rotationAnimationListener = rotationAnimationListener;
    }
}
